<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.wanmait.travel.vo.Userinfo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <% String path=request.getServletContext().getContextPath(); %>
<jsp:include page="/inc/header.jsp"></jsp:include>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改信息</title>
</head>
<body>
<%Userinfo userinfo=(Userinfo)request.getAttribute("userinfo"); %>
<%Userinfo userinfo1 =(Userinfo)request.getSession().getAttribute("uesrinfo"); %>
<form action="<%=path %>/UserinfoController?action=update&id=<%=userinfo.getId()%>" method="post">
<br>
			<div style="text-align:center;">
				<label>用户名&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="username" value="<%=userinfo.getUsername()%>">
				<br><br>
				<label>密码:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="userpass" value="<%=userinfo.getUserpass()%>" >
				<br><br>
				<label>昵称:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="nickname"  value="<%=userinfo.getNickname() %>">
				<br><br>
				<label>性别:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="gender" value="<%=userinfo.getGender()%>">
				<br><br>
				<label>电话:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="phone" value="<%=userinfo.getPhone()%>">
				<br><br>
				<label>头像:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="pic" value="<%=userinfo.getPic()%>">
				<br><br>
				<label>生日:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</label>
				<input type="text" name="birthday" value="<%=userinfo.getBirthday()%>">
				<br><br>
				<label>真实姓名:</label>
				<input type="text" name="real_name" value="<%=userinfo.getRealName()%>">
				<br><br>
				<label>家庭住址:</label>
				<input type="text" name="address" value="<%=userinfo.getAddress()%>">
				<br><br>
			
				<input type="submit" value="提交" style="width:50px;">
				</div>
			</fieldset>
		</form>
</body>
</html>
<jsp:include page="/inc/footer.jsp"></jsp:include>